﻿<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="images/style.css" type="text/css" rel="stylesheet">
    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body>
    <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
        <tr>
            <td width="8%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">ID</font></div>
            </td>
            <td width="15%" bgcolor="e7e7e7">
                <div align="center">
                    项目名称</div>
            </td>
            <td width="15%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">项目属性</font></div>
            </td>
            <td width="20%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">采集</font></div>
            </td>
            <td width="22%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">项目管理</font></div>
            </td>
        </tr>
        <%
set rs=server.createobject("adodb.recordset")
sql="select * from cjxm"
rs.open sql,conn,1,1
i=0
do while not rs.eof

        %>
        <tr>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <%=rs("id")%></div>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <a href="<%=rs("cjurl")%>" target="_blank">
                        <%=rs("xmmc")%></a></div>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <%if rs("xmsx")="1" then%>
                    列表页
                    <%elseif rs("xmsx")="2" then%>
                    漫画页
                    <%elseif rs("xmsx")="3" then%>
                    章节页
                    <%end if%>
                </div>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <a href="cj_lb.asp?cjid=<%=rs("id")%>">采集</a> <a href="cj_gx.asp?cjid=<%=rs("id")%>">
                        更新</a> <a href="cjcomic_manage.asp?cjid=<%=rs("id")%>">已有数据</a></div>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <a href="cjxm_admin.asp?id=<%=rs("id")%>&act=edit">修改</a>&nbsp;<%set rs2=server.createobject("adodb.recordset")
sql2="select * from cjlog where cjid ="&rs("id")&""
rs2.open sql2,conn,1,1
if not rs2.eof then%>
                    <a href="#" onclick="alert('已采集有数据的项目不能删除!')">删除</a>
                    <%
rs2.close
else%>
                    <a href="cjxm_admin.asp?id=<%=rs("id")%>&act=del" onclick="{if(confirm('确定删除此项目吗!?')){return true;}return false;}">
                        删除</a><%end if%></div>
            </td>
        </tr>
        <% i=i+1 
rs.movenext 
loop 
rs.close
set rs=nothing
set conn=nothing%>
    </table>
    <div align="center">
        <p>
            <input name="newsuperuser" type="button" class="Submit" id="newsuperuser" onclick="(location='cjxm_admin.asp?act=add')"
                value="新建一个采集项目">
        </p>
    </div>
</body>
</html>
